﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Heyu.Utility
{
    /// <summary>
    /// 静态类，静态方法
    /// </summary>
    public static class StaticUtility
    {
        public static string SerializeDataTable(this DataTable dt)
        {
            return JsonUtility.SerializeDataTable(dt);
        }
        public static DataTable DeserializerTable(this string strJson)
        {
            return JsonUtility.DeserializerTable(strJson);
        }

        public static string HtmlDecode(this string s)
        {
            return StringUtility.HtmlDecode(s);
        }
        public static string StripHtml(this string s)
        {
            return StringUtility.StripHtml(s);
        }
        public static bool ColumnContains(this DataRow dr, string name)
        {
            return StringUtility.ColumnContains(dr, name);
        }
    }
}
